# -*- coding: utf-8 -*-
# @author: wch
# @file: drawText.py
# @time: 2023/2/8 10:09

# 绘制文本

# putText(img,字符串，起始点，字体，字号,....)
import numpy as np
import cv2

img = np.zeros((460,640,3),np.uint8)


# 绘制文本
# cv2.putText(img,"Hello World",(100,220),cv2.FONT_HERSHEY_PLAIN,5,(0,0,255))
cv2.putText(img,"Hello World",(100,220),4,5,(0,0,255))
cv2.imshow("img",img)
cv2.waitKey(0)
cv2.destroyAllWindows()

